package com.duanjw.springcloud.sleuthone.web;

import com.duanjw.springcloud.sleuthone.feign.SleuthTwoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author duanjw
 */
@RestController
public class SleuthOneController {
    private SleuthTwoService sleuthTwoService;

    public SleuthOneController(SleuthTwoService sleuthTwoService) {
        this.sleuthTwoService = sleuthTwoService;
    }

    @GetMapping
    public String echo(){
        return sleuthTwoService.echo();
    }
}
